<template>
    <div class="navbar">
        <div class="nav_side">
            <div class="hl_logo">
                <img src="../../static/imgs/hl.png">
            </div>
            <div>云海螺</div>
        </div>
    </div>
</template>
<script>
    export default {
        data(){
            return{
                name:localStorage.userName
            }
        },
        methods: {
            doLogoff(){
                localStorage.removeItem('userName');
                localStorage.removeItem('token');
                this.$router.push('/login');
            },
            handleCommand(command) {
                command == 'logoff' ? this.doLogoff():this.changeInfo();
            }
        }
    }
</script>
<style lang="less" scoped>
    .navbar{
        // position: fixed;
        // z-index: 99999;
        // width: 100%;
        // min-width: 1280px;
        // height: 70px;
        // background-color: #ffffff;
	    // box-shadow: 0px 0px 10px 0px 
		// rgba(0, 0, 0, 0.17);
        .nav_side{
            width: 200px;
            height: 70px;
            // float: left;
            background-color: #ff5263;
            font-family: SourceHanSansCN-Bold;
            font-size: 30px;
            line-height: 70px;
            color: #ffffff;
            display: flex;
            // justify-content: center;
            padding-left: 10px;
            box-sizing: border-box;
            .hl_logo{
                padding: 8px;
                img{
                    width: 33px;
                    height: 40px;
                }
            }
        }
    }
    
</style>
